-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't start a new alert also if there is no reception. #184
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Tzachi Dar <[email protected]>
I tested this case on the master : switched off bluetooth, new alerts were not started (new alert with time rule) |
As for new alert with time rule not firing, well, I believe we have a bug here... |
as far as I can test, time based alert does not fire at all when it's being set or changed while already having a bg value higher than the value set in the alarm (tested with high alert). No matter the status of the missedreadings. |
Yes, this is probably a bug in the way that we handle the next alert. Actually, if there are alerts that are time dependent, we should call the SetTimer() in any case. |
We would have to do two things: 1st: like you proposed 2nd: call the Notifications Service/Intent every time an alarm gets I don't know if we do the 2nd already. But I think not. On 27/11/15 09:18, tzachi-dar wrote:
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! |
The first version of the code, used to have a timer that worked every minute. This solved all this problems with very small code. |
A lot has changed in the last 2 month. Is this PR still valid? |
I'll look at it this week. Might be that the new changes actually make it more ready for submission. |
Signed-off-by: Tzachi Dar [email protected]
This small change also covers the case that a new alert should have started (because of a rule with time).
If there are no fresh readings, than alert will not happen.